<table id="topic-list">
  <tr>
    <th>
      {{i18n topic.title}}
    </th>
    <th>{{i18n category_title}}</th>
    <th class='num posts'>{{i18n posts}}</th>
    <th class='num likes'>{{i18n likes}}</th>
    <th class='num views'>{{i18n views}}</th>
    <th class='num activity' colspan='2'>{{i18n activity}}</th>
  </tr>

  {{#group}}
    {{#collection contentBinding="view.topics" tagName="tbody" itemTagName="tr"}}
      <td class='main-link'>
        <a class='title' href="{{unbound lastReadUrl}}">{{{unbound fancy_title}}}</a>
        {{#if unread}}
          <a href="{{unbound lastReadUrl}}" class='badge unread badge-notification' title='{{i18n topic.unread_posts count="unread"}}'>{{unbound unread}}</a>
        {{/if}}
        {{#if new_posts}}
          <a href="{{unbound lastReadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new_posts count="new_posts"}}'>{{unbound new_posts}}</a>
        {{/if}}
        {{#if unseen}}
          <a href="{{lastReadUrl}}" class='badge new-posts badge-notification' title='{{i18n topic.new}}'><i class='icon icon-asterisk'></i></a>
        {{/if}}
      </td>
      <td class='category'>
        {{categoryLink category}}
      </td>
      <td class='num posts'><a href="{{lastReadUrl}}" class='badge-posts'>{{number posts_count numberKey="posts_long"}}</a></td>

      <td class='num likes'>
        {{#if like_count}}
          <a href='{{url}}{{#if has_best_of}}?filter=best_of{{/if}}'>{{like_count}} <i class='icon-heart'></i></a>
        {{/if}}
      </td>

      <td {{bindAttr class=":num :views viewsHeat"}}>{{number views numberKey="views_long"}}</td>
      {{#if bumped}}
        <td class='num activity'>
          <a href="{{url}}" {{{bindAttr class=":age ageCold"}}} title='{{i18n first_post}}: {{{unboundDate created_at}}}' >{{unboundAge created_at}}</a>
        </td>
        <td class='num activity last'>
          <a href="{{lastPostUrl}}" class='age' title='{{i18n last_post}}: {{{unboundDate bumped_at}}}'>{{unboundAge bumped_at}}</a>
        </td>
      {{else}}
        <td class='num activity'>
          <a href="{{url}}" class='age' title='{{i18n first_post}}: {{{unboundDate created_at}}}'>{{unboundAge created_at}}</a>
        </td>
        <td class="activity"></td>
      {{/if}}
    {{/collection}}
  {{/group}}

</table>